import { createRouter, createWebHashHistory  } from 'vue-router'
import login from '../views/login.vue';
import home from '../views/home.vue';
const routes = [
  {
    path: '/',
    name: 'login1',
    component: login,
  },
  {
    path: '/login',
    name: 'login',
    component: login,
  },
  {
    path: '/home',
    name:'home',
    component: home,
  },
]

const router = createRouter({
  history: createWebHashHistory (import.meta.env.BASE_URL),
  routes,
})

export default router